package controller;

import model.Customer;
import model.data.CustomerStore;
import model.data.container.CustomerContainer;

public class CustomerController {
		/** The storage space for customers */
		private CustomerStore customerStore;
		private Customer customer = new Customer();
		
		/** Constructs a new customer controller */
		public CustomerController() {
			this.customerStore = new CustomerContainer();
		}
		
		/** Adds a new customer 
		 * @throws Exception */
		public void addProduct() throws Exception {
			customer = new Customer();
			customerStore.write(customer);
			}
		
		
		/** Removes a customer
		 * @throws Exception */
		public void removeProduct() throws Exception{
			customer = new Customer();
			customerStore.delete(customer);
		}
}
